<?php
/**
 * This file is loaded automatically by the app/webroot/index.php file after the core bootstrap.php
 *
 * This is an application wide file to load any function that is not used within a class
 * define. You can also use this to include or require any files in your application.
 *
 * PHP versions 4 and 5
 *
 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
 * Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org)
 *
 * Licensed under The MIT License
 * Redistributions of files must retain the above copyright notice.
 *
 * @copyright     Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org)
 * @link          http://cakephp.org CakePHP(tm) Project
 * @package       cake
 * @subpackage    cake.app.config
 * @since         CakePHP(tm) v 0.10.8.2117
 * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
 */

/**
 * The settings below can be used to set additional paths to models, views and controllers.
 * This is related to Ticket #470 (https://trac.cakephp.org/ticket/470)
 *
 * App::build(array(
 *     'plugins' => array('/full/path/to/plugins/', '/next/full/path/to/plugins/'),
 *     'models' =>  array('/full/path/to/models/', '/next/full/path/to/models/'),
 *     'views' => array('/full/path/to/views/', '/next/full/path/to/views/'),
 *     'controllers' => array('/full/path/to/controllers/', '/next/full/path/to/controllers/'),
 *     'datasources' => array('/full/path/to/datasources/', '/next/full/path/to/datasources/'),
 *     'behaviors' => array('/full/path/to/behaviors/', '/next/full/path/to/behaviors/'),
 *     'components' => array('/full/path/to/components/', '/next/full/path/to/components/'),
 *     'helpers' => array('/full/path/to/helpers/', '/next/full/path/to/helpers/'),
 *     'vendors' => array('/full/path/to/vendors/', '/next/full/path/to/vendors/'),
 *     'shells' => array('/full/path/to/shells/', '/next/full/path/to/shells/'),
 *     'locales' => array('/full/path/to/locale/', '/next/full/path/to/locale/')
 * ));
 *
 */

/**
 * As of 1.3, additional rules for the inflector are added below
 *
 * Inflector::rules('singular', array('rules' => array(), 'irregular' => array(), 'uninflected' => array()));
 * Inflector::rules('plural', array('rules' => array(), 'irregular' => array(), 'uninflected' => array()));
 *
 */
$config =& Configure::getInstance(); 
 define('CURR_FILE_PATH', WWW_ROOT.'img'.DS);
 define("CURRENT_PATH", 'http://' . $_SERVER['HTTP_HOST'] .'/');
 define('COMMON_DATE_FORMAT',"d M Y");
 
 define('ADMIN_NAME', 'FCBC');
 
 /* 167279416642198 = LIVE ID */
 define('FB_API_KEY','376530165762873');
 define('FB_SECRET_KEY','8503215cbb79b14e159c22390909afac');
 define('APP_URL','');
 /* 
 //---------- Share types

 define("FB_SHARE",0);
 define("FB_LIKE",1);
 define("FB_UNLIKE",2);
 
 $config->coursetypes = array (
				FB_SHARE => 'fb share',
				FB_LIKE => 'fb like',
				FB_UNLIKE => 'fb unlike'
				);
				 */
//----------user roles
define('MULTIPLE_ADMIN', false);

 define("SELLER",2);
 define("NORMAL",1);
 define("ADMIN",0);

 $config->roles = array (
				'2' => 'Seller',
				'1' => 'Normal',
				'0' =>'Admin'
				);
 $config->types = array (
				'0' => 'ibless',
				'1' =>'buzzup',
				'2'=>'testimonies'
				);

 define("MIN_PASSWORD_LENGTH",6);//password length 
 define('TEXT_LIMIT', 1000);
 define('MAX_IMG_SIZE', 819200);
 
 define('MALE', 1);
 define('FEMALE', 0);
 
 define('IN_STOCK', 0);
 define('OUT_STOCK', 1);
 
 //URL variables
 
 /* //facebook share variable
 define("display_mode",'popup'); 
 //define("picture",$_SERVER['HTTP_HOST'] .'/img/share/kumar_share.jpg'); 
 define("pictures", 'longjohn.jpg,marinabaygolf.jpg,popular.jpg,timbre.jpg,universal.jpg,cathay.jpg'); 
 define("name_general",'Choose your Favourite Privilege NOW!'); 
 define("caption","Everyone loves to win!"); 
 define("description",''); 
 define("tip_url",'http://www.sharethelove.my'); 
 //define("tip_url",'http://www.facebook.com/NTUCUFamily?sk=app_193667230674954'); 
 define("message_general","Choose your favourite privileges from NTUC and stand a chance to win attractive prizes!"); 
 define("action_links_text",'sharethelove'); 
 define("action_links_href","http://www.sharethelove.my");  */
 
 define("GA_ID", 'UA-24647879-1');
 define("UNIQUE_LOGIN_DURATION",10800);//3 hours in seconds 
 define("DEFAULT_PAGE_TITLE",'Dealcruncher');
 define("DEFAULT_META_TITLE",'Dealcruncher');
 define("DEFAULT_KEYWORD",'Dealcruncher');
 define("DEFAULT_DESCRIPTION",'Dealcruncher');